<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>医疗费查询</title>

    <!--引入 element-ui 的样式，-->
    <link rel="stylesheet" href="/admin/plugin/element-ui/index.css">
    <!-- 必须先引入vue，  后使用element-ui -->
    <script type="text/javascript" src="/admin/js-css/js/vue.min.js"></script>
    <!-- 引入element 的组件库-->
    <script type="text/javascript" src="/admin/plugin/element-ui/index.js"></script>

    <script type="text/javascript" src="/admin/plugin/element-ui/httpVueLoader.js"></script>

    <!--引入layui组件-->
    <link rel="stylesheet" href="/admin/plugin/layui/dist/css/layui.css"  media="all">
    <script src="/admin/plugin/layui/dist/layui.js" charset="utf-8"></script>

    <script type="text/javascript" src="/admin/js-css/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/admin/js-css/js/mx1.0.js?v=1.1"></script>

    <link rel="stylesheet" href="/admin/js-css/css/listvue.css"  media="all" >



</head>
<body>
<div id="app"  >
    <!-- 公共列表组件 -->
    <list
            ref="listCommon"
    ></list>
</div>
</body>
<script>
    Vue.use(httpVueLoader);

    var vm = new Vue({
        el:"#app",
        components: {
            "list" : httpVueLoader("/admin/html/dataManagement/list.vue")
        },
        data:{
            selectData : [],
            multipleSelection : [],
        },
        created(){
        },
        methods:{
            baobiaopint(){
                if(this.multipleSelection.length == 0){
                    top.alert("请选择一条记录进行打印！");
                    return ;
                }
                if(this.multipleSelection.length > 1){
                    top.alert("只能选择一条记录进行打印！");
                    return ;
                }
                let btn = {
                    btn: ['打印预览','取消']
                    , yes: function (index, layero) {
                        //按钮【按钮一】的回调
                        let win = getTopIframe(layero);
                        win.vm.printHtml();
                    }, btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                top.f_layer_open_get("/admin/html/module/yumenyoutian/gongshangdengji/print1.html?id="+this.multipleSelection, "85%", "85%", function () {

                }, btn, "医疗费报表打印",{});
            },
            f_view_print(row){
                let btn = {
                    btn: ['取消']
                    , btn2: function (index, layero) {
                        //按钮【按钮二】的回调
                        //return false 开启该代码可禁止点击该按钮关闭
                    }
                };
                console.log(row);

                top.data.other = {type:"view"};
                top.f_layer_open_get("/admin/html/inputCustom/index.html?tableId="+getTableId("2368")+"&id="+row.id, "85%", "85%", function () {

                }, btn, "医疗费详情查看",{});
            },

        }
    });
</script>
</html>